Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Added a nullHandler function to deal with blank line input.#5

Open
dekay wants to merge 3 commits intokroimon:masterfrom
dekay:master
Open

Added a nullHandler function to deal with blank line input.#5
dekay wants to merge 3 commits intokroimon:masterfrom
dekay:master

Conversation

@dekay
Copy link

@dekay dekay commented Feb 16, 2014

This change recognizes when the user hits return on a blank line. I needed to handle this case for my project (a blank line is used to wake the device I am emulating, after which it sends an ack() response), but I can see it coming in useful in other applications.

@dekay
Copy link
Author

dekay commented Feb 16, 2014

Added a second commit that adds support for a second line terminator. In my application, I needed to handle lines that terminated in either 0x0a or 0x0d.

This probably should have been done in a separate branch from the other change. Sorry about that. I'm a git newb.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant